﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace ProjectM2Work.Pages
{
    public partial class PageChuong01 : PhoneApplicationPage
    {
      //  bool isScale = false;
        public PageChuong01()
        {
            InitializeComponent();
        }
       

        private void btn_mucluc_MouseLeave(object sender, MouseEventArgs e)
        {
           
            App.ZoomInImage(sender);
        }

        private void btn_mucluc_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            App.ZoomOutImage(sender);
        }

        private void btn_mucluc_MouseMove(object sender, MouseEventArgs e)
        {
            App.ZoomOutImage(sender);
        }

        private void btn_mucluc_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            NavigationService.Navigate(new Uri("/Pages/PageBaiGiang.xaml", UriKind.Relative));
        }

        private int iNumPage = 1;
        private void image2_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            //next page
           
            switch (iNumPage)
            {
                case 1:
                    img_bcc.Source =
                        new System.Windows.Media.Imaging.BitmapImage(new Uri("../images/img_bcc01.png", UriKind.Relative));
                    iNumPage = 2;
                    img_next.Source =
                        new System.Windows.Media.Imaging.BitmapImage(new Uri("../images/btn_back.png", UriKind.Relative));
                    break;
                case 2:
                     img_bcc.Source =
                        new System.Windows.Media.Imaging.BitmapImage(new Uri("../images/img_bcc02.png", UriKind.Relative));
                    iNumPage = 1;
                    img_next.Source =
                        new System.Windows.Media.Imaging.BitmapImage(new Uri("../images/btn_next.png", UriKind.Relative));
                    break;
            }

        }

    }
}